<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var persons = [
            {id:1,score:62,name:'张三'},
            {id:2,score:72,name:'张三2'},
            {id:3,score:82,name:'张三3'},
            {id:4,score:102,name:'张三4',gender:'男'},
            {id:1,score:52,name:'张三5'},
            {id:6,score:42,name:'张三6',gender:'男'},     
        ]

        persons.forEach(item=>{
            const p = persons.find(t=>t.id == item.id);
            if(!p){
                return;
            }
            if(p.gender){
                return
            }
            console.log(item);
        })
    </script>
</body>
</html>